package com.eqdd.yiqidian.ui.gongneng.renshi.train;

import android.databinding.DataBindingUtil;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.eqdd.yiqidian.R;
import com.eqdd.yiqidian.RecyclerViewCustom;
import com.eqdd.yiqidian.bean.rebuild.slimedit.SlimEditVEnterBean;
import com.eqdd.yiqidian.box.ItemDecoration.SectionDividerItemDecoration;
import com.eqdd.yiqidian.ui.base.SlimBaseMultiEditActivity;
import com.eqdd.yiqidian.utils.DensityUtil;

/**
 * @author吕志豪 .
 * @date 18-2-5  下午4:43.
 * Github :https://github.com/lvzhihao100
 * E-Mail：1030753080@qq.com
 * 简书 :http://www.jianshu.com/u/6e525b929aac
 */

public class AddTrainLectureActivity extends SlimBaseMultiEditActivity {

    private RecyclerViewCustom dataBinding;

    @Override
    public void initBinding() {
        dataBinding = DataBindingUtil.setContentView(this, R.layout.activity_recyclerview);
        initTopTitleBar(View.VISIBLE, "添加企业课程");
        initTopRightText("提交", v -> {

        });
    }

    @Override
    protected RecyclerView initRecyclerView() {
        isDefautDivider = false;
        dataBinding.recyclerView.addItemDecoration(new SectionDividerItemDecoration(this, 5, 4)
                .setHeadHeight(DensityUtil.percentW(50))
                .setTitle("课程信息", "讲师信息"));
        return dataBinding.recyclerView;
    }

    @Override
    public void itemClick(int p) {

    }

    @Override
    protected void setEditBeans() {
        isSave = false;
        isRead = false;
        datas.add(new SlimEditVEnterBean("课程主题", "", 0, "请输入"));
        datas.add(new SlimEditVEnterBean("课程类别", "", 0, "请选择"));
        datas.add(new SlimEditVEnterBean("课程时长", "", 0, "请选择"));
        datas.add(new SlimEditVEnterBean("适合对象", "", 0, "请选择"));
        datas.add(new SlimEditVEnterBean("课程大纲", "", 0, "请输入"));
        datas.add(new SlimEditVEnterBean("讲师", "", 0, "请选择"));
        datas.add(new SlimEditVEnterBean("讲师介绍", "", 0, "请输入"));
        datas.add(new SlimEditVEnterBean("受训对象", "", 0, "请选择"));
        datas.add(new SlimEditVEnterBean("预算费用", "", 0, "请输入"));
    }
}
